import { createStore, applyMiddleware } from 'redux';
import reducers from 'reducers';
import createSaga from 'redux-saga';
import rootSaga from 'sagas';

const saga = createSaga();
const store = createStore(
  reducers,
  applyMiddleware(saga)
);
saga.run(rootSaga);
export default store;
